Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Some micro optimizations

  • Loading branch information...
commit 0a3d5db1ac7a8726a3f95ebffbe053b72a52cf9f 1 parent 6150c83
malubl authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 lib/Joose.js
6 lib/Joose.js
@@ -673,13 +673,13 @@ Joose.MetaClassBootstrap.prototype = {
673 673 this.dieIfString(classObject);
674 674 var name = classObject.meta.className()
675 675 // Same type
676   - if(this.className() == name) {
  676 + if(this.className() === name) {
677 677 return true
678 678 }
679 679 // Look up into parent classes
680   - for(var i = 0; i < this.parentClasses.length; i++) {
  680 + for(var i = 0, len = this.parentClasses.length; i < len; ++i) {
681 681 var parent = this.parentClasses[i].meta
682   - if(parent.className() == name) {
  682 + if(parent.className() === name) {
683 683 return true
684 684 }
685 685 if(parent.isa(classObject)) {

0 comments on commit 0a3d5db

Please sign in to comment.
Something went wrong with that request. Please try again.