Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' into spm2

  • Loading branch information...
commit 0e23a19466f85ed62749becd3cc84e35151b8a11 2 parents ff3c05c + 12d1f0f
@lepture lepture authored
Showing with 3 additions and 6 deletions.
  1. +2 −2 README.md
  2. +1 −4 src/class.js
View
4 README.md
@@ -3,7 +3,7 @@
---
-[![Build Status](https://secure.travis-ci.org/aralejs/class.png)](https://travis-ci.org/aralejs/class)
+[![Build Status](https://secure.travis-ci.org/aralejs/class.png?branch=master)](https://travis-ci.org/aralejs/class)
提供简洁的 OO 实现。
@@ -164,5 +164,5 @@ var Dog = Class(Animal).extend({
## 性能对比
-- <http://jsperf.com/class-perfs>
+- <http://jsperf.com/class-perfs/8>
View
5 src/class.js
@@ -170,12 +170,9 @@ define(function(require, exports, module) {
var toString = Object.prototype.toString
- var isArray = Array.isArray
- if (!isArray) {
- isArray = function(val) {
+ var isArray = Array.isArray || function(val) {
return toString.call(val) === '[object Array]'
- }
}
var isFunction = function(val) {
Please sign in to comment.
Something went wrong with that request. Please try again.