Skip to content

Commit

Permalink
v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
flozz committed Apr 24, 2023
1 parent 4f2d97d commit f7b485e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015, Wanadev <http://www.wanadev.fr/>
Copyright (c) 2015-2023, Wanadev <http://www.wanadev.fr/>
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ var Vehicle = Class.$extend({

## Changelog

* **2.1.0:** Added TypeScript type definitions (@jbghoul, #26)
* **2.0.1:** Optimization of special properties detection (@jbghoul, #23)
* **2.0.0:** New pre/post build hooks that allows to implement new patterns on
Abitbol Classes.
Expand Down
5 changes: 4 additions & 1 deletion dist/abitbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ function inherit(SuperClass) {

// Checks if the given function uses abitbol special properties ($super, $name,...)
function usesSpecialProperty(fn) {
return Boolean(fn.toString().match(/.*(\$super|\$name|\$computedPropertyName).*/));
var fnString = fn.toString();
return fnString.indexOf("$super") > -1 ||
fnString.indexOf("$name") > -1 ||
fnString.indexOf("$computedPropertyName") > -1;
}

var Class = function () {};
Expand Down
2 changes: 1 addition & 1 deletion dist/abitbol.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "abitbol",
"version": "2.0.1",
"version": "2.1.0",
"description": "The classiest javascript class library of the world",
"homepage": "https://wanadev.github.io/abitbol/",
"main": "src/abitbol.js",
Expand Down

0 comments on commit f7b485e

Please sign in to comment.