Skip to content

Commit

Permalink
fixed comparission
Browse files Browse the repository at this point in the history
  • Loading branch information
acatl committed Sep 28, 2011
1 parent 70d0e7a commit f33e1f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jquery.declare.js
Expand Up @@ -5,17 +5,17 @@
* Licensed under the MIT License.
* http://jquery.org/license
*/
(function ($) {
(function($) {
$.extend({
declare: function (namespace, object) {
declare: function(namespace, object) {
var scopes = namespace.split(".");
var scopeLength = scopes.length;
var scopeObject = window;
if (scopeLength == 0) return false;
for (var i = 0; i < scopeLength; i++) {
var scope = scopes[i];
if (i != scopeLength - 1) {
if (!typeof scopeObject[scope] != "undefined") {
if (typeof scopeObject[scope] == "undefined") {
scopeObject[scope] = {};
}
scopeObject = scopeObject[scope];
Expand All @@ -35,4 +35,4 @@
}
}
});
})(jQuery);
})(jQuery);

0 comments on commit f33e1f2

Please sign in to comment.