~jflaker/unity-webapps-qml/BugFix1399841

« back to all changes in this revision

Viewing changes to src/Ubuntu/UnityWebApps/UnityWebAppsBackendComponents.js

  • Committer: Jeffrey Flaker
  • Date: 2015-01-15 02:27:08 UTC
  • Revision ID: jflaker@gmail.com-20150115022708-sx6izs85j6kv520b
fix typo: lenght should be length

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
    return actionName.replace(/^\/+/, '');
90
90
}
91
91
UnityActionsBackendAdaptor.prototype.__actionExists = function (actionName) {
92
 
    if (!actionName || typeof(actionName) != 'string' || actionName.lenght === 0)
 
92
    if (!actionName || typeof(actionName) != 'string' || actionName.length === 0)
93
93
        return false;
94
94
    return this._actions[actionName] != null && this._actions[actionName].action != null;
95
95
};