Skip to content
This repository was archived by the owner on Oct 18, 2025. It is now read-only.
This repository was archived by the owner on Oct 18, 2025. It is now read-only.

Batarang makes one-time binding to stop working at times #209

@walter-psjr

Description

@walter-psjr

I am developing an application where angular realized that the number of watchers was high despite being using one-time binding. I created a test page with a listing in table and realized that when I use http: // localhost one-time binding does not work and when I change the address for the machine name, for example, works correctly:

http://localhost/angular/repeater2.html
image

http://ucb-walterdev/angular/repeater2.html
image

The detail is that this is only happening in Chrome (I'm using version 39.0.2171.99 m, Windows 8.1 64-bit). In Firefox and Internet Explorer rendering occurs perfectly.

The code to generate the table:

    <table class="table table-bordered table-striped table-hover tablesorter" id="tblOcuppation">
        <thead>
            <tr>
                <th>Id</th>
                <th>Occupation Name</th>
                <th>Delete</th>
            </tr>
        </thead>
        <tbody>
            <tr data-ng-repeat="occupation in occupations">
                <td>{{::occupation.Id}}</td>
                <td>{{::occupation.Name}}</td>
                <td>
                    <button type="button" class="btn btn-default btn-sm" data-ng-show="::occupation.Name.indexOf('a') > -1" data-ng-click="delete(occupation.Id)">
                        <span class="glyphicon glyphicon-trash"></span>
                    </button>
                </td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td>Total:</td>
                <td>{{occupations.length}}</td>
                <td></td>
            </tr>
        </tfoot>
    </table>

Disabling the Batarang extension the one-time binding works normally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions